home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / dev / c / c_ced.lha / C&CED / Getstruct / GetStruct.doc < prev    next >
Text File  |  1993-04-14  |  2KB  |  70 lines

  1.  
  2.                         GetStruct
  3.  
  4.  
  5.    WHAT IT IS
  6.    ~~~~~~~~~~
  7. GetStruct is a structure/object lookup routine for Cygnus Ed.  Hit a
  8. function key, pull up the include/header/object file that contains
  9. that structure or object and place the cursor on it.
  10.  
  11.  
  12.    WHAT YOU NEED
  13.    ~~~~~~~~~~~~~
  14. header files
  15. ~~~~~~~~~~~~
  16. Either the C= header (*.h) or include (*.i) files or the ascii version
  17. of the E object files (*.e).  AmigaEdocs.LHA archive contains the
  18. *.txt files or you can ShowModule the individual *.m files.  You'll
  19. have to rename the *.txt files to *.e if you use the AmigaEdocs.LHA
  20. archive.
  21.  
  22. some assigns
  23. ~~~~~~~~~~~~
  24. include_h: <dir that has the *.h files>
  25. include_i: <dir that has the *.i files>
  26. include_e: <dir that has the *.e files>
  27.  
  28.    ie > ls include_h:
  29.         clib   
  30.         devices
  31.          ...
  32.  
  33. index files
  34. ~~~~~~~~~~~
  35. Each directory needs an INDEX file.  ParseInc builds these:
  36.       parseinc h >include_h:INDEX
  37.       parseinc e >include_e:INDEX
  38.       parseinc i >include_i:INDEX
  39. 'parseinc ?' will remind you of the usage.
  40.  
  41. Cygnus Ed F-Key assignments
  42. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43. Put GetStruct.ced in REXX:  and assign a CED function key (or macro)
  44. to:
  45.  
  46.    rexx:getstruct h  ('i' for the asm includes or 'e' for the E objects)
  47.  
  48. That should do it.
  49.  
  50.  
  51.    SOME POSSIBLE PROBLEMS
  52.    ~~~~~~~~~~~~~~~~~~~~~~
  53. nothing happens when you hit the function key
  54.    - you may need to set the script bit on REXX:GetStruct.ced or
  55.      use 'rx' in the CED key assignment
  56.  
  57. CED requester says something like 'can't find include_x:INDEX'
  58.    - include_x: isn't assigned
  59.    - ParseInc hasn't been used to build the INDEX file
  60.  
  61. ParseInc won't run
  62.    - it requires rexxarplib.library (and arp.library) for the
  63.      filelist() function
  64.  
  65. the include file gets loaded, but the cursor isn't being positioned on
  66. the structure name.
  67.    - 'uc==lc?' is toggled off in the search requester
  68.    - you may have to alter the search statements at the end of
  69.      the script.
  70.